package com.sokal.easycare.modules.trial.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.sokal.easycare.common.persistence.Page;
import com.sokal.easycare.common.service.CrudService;
import com.sokal.easycare.modules.trial.entity.TrialRecord;
import com.sokal.easycare.modules.trial.dao.TrialRecordDao;

/**
 * 试算记录Service
 * @author lihaipei
 * @version 2017-05-25
 */
@Service
@Transactional(readOnly = true)
public class TrialRecordService extends CrudService<TrialRecordDao, TrialRecord> {

	public TrialRecord get(String id) {
		return super.get(id);
	}
	
	public List<TrialRecord> findList(TrialRecord trialRecord) {
		return super.findList(trialRecord);
	}
	
	public Page<TrialRecord> findPage(Page<TrialRecord> page, TrialRecord trialRecord) {
		return super.findPage(page, trialRecord);
	}
	
	@Transactional(readOnly = false)
	public void save(TrialRecord trialRecord) {
		super.save(trialRecord);
	}
	
	@Transactional(readOnly = false)
	public void delete(TrialRecord trialRecord) {
		super.delete(trialRecord);
	}
	
}